#!/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
# -*- coding: UTF-8 -*-

def add(name,*args):
    sum=0
    if len(args)>0:
        for i in args:
            sum+= i
        print('%s累加和是：sum= %s' %(name,sum))    
    else:
        print('没有参数可计算')    

add('xinxin',2,3)